package com.cykj.pos.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cykj.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 结算末班
 *
 * @author zephyr
 * @date 2025-01-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("settlement_rate_template")
public class SettlementRateTemplate implements Serializable {

    private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(value = "id")
    private Long id;

    private Long merchId;
    @TableField(exist = false)
    private Long userId;

    private String templateName;// 模板名称

    private BigDecimal creditRate;//信用卡费率

    private BigDecimal debitFee;//借记卡费率

    private BigDecimal debitCap;//借记卡封顶值

    private String adjustmentShare;//调价分成 (针对费率改到0.6以上，自动触发分成模式，输入100代表100%下发)

    private BigDecimal qrCodeRate;//扫码费率

    private BigDecimal d0Fee;//D0单笔服务费

    private String var1;

    private String var2;

    private String var3;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
